/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.enforcement.hid.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.hopes.bizz.common.core.annotation.ExcelDictImportValidate;
import com.hopes.boss.common.entity.ExcelDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 法律法规库
 *
 * @author pig
 * @date 2024-01-18 11:08:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseLawStashExcelDTO extends ExcelDTO {

    private static final long serialVersionUID = 1L;


    /**
     * 文件类别
     */
    @ExcelProperty("文件类别")
    @NotBlank(message = "文件类别不能为空")
    @ExcelDictImportValidate(enumResolver = "file_type", message = "文件类别不存在")
    private String fileType;

    /**
     * 文件名称
     */
    @ExcelProperty("文件名称")
    @NotBlank(message = "文件名称不能为空")
    private String fileName;

    /**
     * 文件状态
     */
    @ExcelProperty("文件状态")
    @ExcelDictImportValidate(enumResolver = "file_status", message = "文件状态不存在")
    private String fileStatus;

    /**
     * 文件编号
     */
    @ExcelProperty("文件编号")
    @NotBlank(message = "文件编号不能为空")
    private String fileNumber;

    /**
     * 文件发布日期
     */
    @ExcelProperty("文件发布日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date filePublishDate;
    /**
     * 文件发布部门
     */
    @ExcelProperty("文件发布部门")
    private String filePublishDept;

    /**
     * 备注说明
     */
    @ExcelProperty("备注说明")
    private String remark;

}
